/*
 * Copyright (c) novafaen design 2009 
 */
package tentaflykt.editor.gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagLayout;

import javax.swing.JInternalFrame;
import javax.swing.JLabel;

import tentaflykt.SystemConstants;
import tentaflykt.util.GBC;

/**
 * Toolbox for the editor.
 * @author Kristoffer Nilsson
 */
public class Toolbox extends JInternalFrame {
  private static final long serialVersionUID = -2796450258137067205L;

  /**
   * Constructor, creates a <code>Tools</code> window.
   */
  public Toolbox() {
    super("Tools", false, false, false, false);
    
    setLayout(new GridBagLayout());
    
    setLocation(20, 20);
    setPreferredSize(new Dimension(
        SystemConstants.Toolbox.WINDOW_WIDTH, 
        SystemConstants.Toolbox.WINDOW_HEIGHT));
    setBackground(Color.RED);
    
    add(new JLabel("test"), 
        GBC.use(0, 0, 1, 1, 1.0, 1.0, GBC.Anchor.TOP_LEFT, GBC.Fill.BOTH, 0, 0, 0, 0));
    
    setVisible(true);
    moveToFront();
    
    pack();
  }
}
